const shell = require('shelljs')
const fs = require("fs")
const path = require('path')
shell.exec('bash demo.sh', (code, stdout, stderr) => {
      var data = fs.readFileSync('./deploy.txt');
      data = data.toString() + '\n' + `code: ${code}\nstdout: ${stdout}\nstderr: ${stderr}`;
    console.log(data);
      fs.writeFileSync('./deploy.txt', data);
  });
